package com.gite.nouette.admin.implementation.integrator.builder.module;

import com.gite.nouette.admin.contract.integrator.builder.module.IBuilderModuleLog;
import com.gite.nouette.admin.contract.integrator.factory.IFactoryModel;
import com.gite.nouette.admin.contract.model.IManager;
import com.gite.nouette.admin.contract.model.command.ICommandCreateModule;
import com.gite.nouette.admin.contract.model.module.IModuleLog;
import com.gite.nouette.admin.implementation.integrator.builder.AbstractBuilderModule;

public abstract class AbstractBuilderModuleLog extends AbstractBuilderModule
		implements IBuilderModuleLog {

	private IModuleLog product;

	public AbstractBuilderModuleLog(IFactoryModel factoryModel,
			IManager manager, ICommandCreateModule commandCreateModule) {
		super(factoryModel, manager, commandCreateModule);
	}

	@Override
	public IModuleLog getProduct() {
		return this.product;
	}

	public void setProduct(IModuleLog product) {
		this.product = product;
	}

	@Override
	public void createNewProduct() {
		setProduct(getFactoryModel().getModuleLog(getHeaderCommandModules()));
	}
}
